﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Campus.Main.Basic.InsertValues
{
    public partial class Place : Default
    {
        public Place()
        {
            InitializeComponent();
        }
        public Place(List<string> aList):base(aList)
        {
            InitializeComponent();
            id = aList[0];
            textBox1.Text = aList[1];
            textBox2.Text = aList[2];
            button2.Click += button2_Click;
        }

        protected override void button1_Click(object sender, EventArgs e)
        {
            aToDb.UpdateTable("place","ball","description",textBox2.Text,textBox1.Text,id);
            Close();
            
        }
    }
}
